package org.iteye.bbjava.service;

import org.iteye.bbjava.model.User;


/**
 * 注册与密码找回接口
 * 
 * */
public interface RegisterService {

	/**
	 * 注册
	 * @author zhang
	 * @param user 用户信息
	 * @return 1成功，0失败
	 * */
	public int regest(User user);
	
	/**
	 * 找回密码
	 * @author zhang
	 * @param user
	 * @return 密码
	 * 
	 * */
	public String getPwdByAnswerAndQuestion(User user);
	
	/**
	 * 邮件方式修改密码
	 * @author zhang
	 * @param user
	 * 
	 * */
	public void postEmailToChangePwd(User user);
}
